package br.cin.stadium.application.activities;

import br.cin.stadium.application.R;
import br.cin.stadium.application.util.Logger;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.Toast;


public class Main extends Activity
{
	private Main m_main = this;
	
	@Override
	public void onCreate(Bundle savedInstanceState) 
	{
		Logger.log("Main", "onCreate", "Begin");

		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		
		Toast.makeText(Main.this, "Tap on the screen to start.", Toast.LENGTH_LONG).show();
		
		ImageView iv = (ImageView)findViewById(R.id.ImageView01);
		iv.setOnClickListener(new View.OnClickListener()
		{

			public void onClick(View v) 
			{
				Logger.log("Main", "OnClickListener", "Begin");

				Intent filho = new Intent(m_main, StadiumActivity.class);
				startActivity(filho);

				Logger.log("Main", "OnClickListener", "End");
			}
		});

		Logger.log("Main", "onCreate", "End");
	}
}